import request from '@/utils/request'

// 查询无限赏分类列表
export function listWxsCategory(query) {
  return request({
    url: '/system/wxsCategory/list',
    method: 'get',
    params: query
  })
}

// 查询无限赏分类详细
export function getWxsCategory(id) {
  return request({
    url: '/system/wxsCategory/' + id,
    method: 'get'
  })
}

// 新增无限赏分类
export function addWxsCategory(data) {
  return request({
    url: '/system/wxsCategory',
    method: 'post',
    data: data
  })
}

// 修改无限赏分类
export function updateWxsCategory(data) {
  return request({
    url: '/system/wxsCategory',
    method: 'put',
    data: data
  })
}

// 删除无限赏分类
export function delWxsCategory(id) {
  return request({
    url: '/system/wxsCategory/' + id,
    method: 'delete'
  })
}
